using System;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;

namespace Caramel.FluentNHibernate.Conventions
{
	public class ReferencesNotNullableConvention : IReferenceConvention
	{
		#region IConvention<IManyToOneInspector,IManyToOneInstance> Members

		public void Apply(IManyToOneInstance instance)
		{
			instance.
				Not.
				Nullable();
		}

		#endregion
	}
}
